package src.main.java.org.io;

import java.io.*;

/*
DataInputStream(数据输入流)
 */
public class Test13 {
    public static void main(String[] args) {
        try (
                DataInputStream dataInputStream = new DataInputStream(new FileInputStream("E:\\JavaLearn\\javaCode\\src\\test8.txt"))
        ) {
            int i = dataInputStream.readInt();
            System.out.println(i);
            double v = dataInputStream.readDouble();
            System.out.println(v);
            boolean b = dataInputStream.readBoolean();
            System.out.println(b);
            String s = dataInputStream.readUTF();
            System.out.println(s);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
